package com.sky.config;

import com.sun.org.apache.bcel.internal.generic.NEW;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class RedisConfig {

    public RedissonClient redissonClient(){
        Config config = new Config();
//        config.useSingleServer().setAddress("redis://192.168.41.130:6379").setPassword("123321");

        return Redisson.create(config);
    }
}